package com.example.security.service;

import com.example.sys.org.po.SysUser;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public interface SysTokenService {

    public boolean verify(ServletRequest request, ServletResponse response);

    public String createToken(String userId);

    public boolean removeToken();

    public String getTokenKey();

    public boolean verifyToken(String tokenKey);

    public boolean verifyToken();

    public boolean refreshToken(String tokenKey);

    public boolean refreshToken(String userId , String tokenKey);

    public SysUser getUser(String tokenKey);

    public SysUser getUser();
}
